<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
    //创建空对象；
     var o = {};
     for (var i = 0; i < 10; i++) {
         o[i] = i * 2;

     }
     //for in遍历对象属性 和方法
     for (var key in o) {
        console.log(key + "=======" + o[key]);
     }

    </script>
</body>
</html>